<?php
namespace app\admin\model;
use think\Model;

class StudentCourse extends Model 
{ 
    protected $insert = ['state'=>1];
    protected $type = [
        'course_id'    =>  'integer',
        'student_id'      =>  'integer',
        'total_hours'     =>  'float',
        'remain_hours'     =>  'float',
        'end_time'  =>  'timestamp',
    ];
}